//
//  MCHomePageLotteryCategoriesCollectionViewCell.m
//  Uhome
//
//  Created by miaocai on 2017/5/27.
//  Copyright © 2017年 menhao. All rights reserved.
//

#import "MCHomePageLotteryCategoriesCollectionViewCell.h"
#import "MCUserDefinedLotteryCategoriesModel.h"

@interface MCHomePageLotteryCategoriesCollectionViewCell()


@end
@implementation MCHomePageLotteryCategoriesCollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.iconImageV.image = [UIImage imageNamed:@"fc_sd.png"];
    self.titleLabel.textColor = [UIColor darkGrayColor];
    self.titleLabel.font = [UIFont systemFontOfSize:MC_REALVALUE(14)];
    self.layer.cornerRadius = 6.0f;
    self.clipsToBounds = YES;
}

    
-(void)setDataSource:(MCUserDefinedLotteryCategoriesModel *)dataSource{
    _dataSource=dataSource;
    if (dataSource.name) {
        self.titleLabel.text = dataSource.name;
    }
    
    
    self.iconImageV.backgroundColor = [UIColor clearColor];
    self.iconImageV.image = [UIImage imageNamed:dataSource.logo];
}

@end
